home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ IE Help Menu.xpl < prev    next >
Text File  |  2000-03-17  |  2KB  |  71 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="4"
  4. "UIPATH"="Internet\Internet Explorer\Appearance\"
  5. "NAME"="Help Menu Options (IE 5.0 only)"
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.24"
  8. "TEXT 1"="Show "Tip of the Day" in Help menu"
  9. "TEXT 2"="Show "Tutorial" in Help menu"
  10. "TEXT 3"="Show "Send feedback" in Help menu"
  11. "TEXT 4"="Show "For Netscape..." in Help menu"
  12. "DESCRIPTION 1"="To show an item in the Help menu, activate it. To hide it, deactivate it."
  13. "DESCRIPTION 2"="Please note that you need to restart Internet Explorer so the changes can take effect."
  14. "DESCRIPTION 3"="*IMPORTANT* These options do not work with Internet Explorer 5.01!"
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"=" "
  19. "COMMENT 2"=" "
  20.  
  21.  
  22.  
  23. sPath="HKCU\Software\Policies\Microsoft\Internet Explorer\"
  24. sTIP="remove tip of the day" 'all dword (1 = remove)
  25. sTUT="remove tutorial"
  26. sFED="remove feedback"
  27. sNET="remove netscape help"
  28.  
  29.  
  30. Sub Plugin_Initialize 
  31.  i=RegReadValue(sPath & sTIP)
  32.  if i<>1 then SetUIElement 1,true
  33.  
  34.  i=RegReadValue(sPath & sTUT)
  35.  if i<>1 then SetUIElement 2,true
  36.  
  37.  i=RegReadValue(sPath & sFED)
  38.  if i<>1 then SetUIElement 3,true
  39.  
  40.  i=RegReadValue(sPath & sNET)
  41.  if i<>1 then SetUIElement 4,true
  42. End Sub
  43.  
  44. Sub Plugin_CheckData(ElementIndex)
  45. End Sub
  46.  
  47. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  48.  Call WriteIt(1,sTIP)
  49.  Call WriteIt(2,sTUT)
  50.  Call WriteIt(3,sFED)
  51.  Call WriteIt(4,sNET)
  52. End Sub
  53.  
  54. Sub WriteIt(ITM,VAL)
  55.  b=GetUIElement(ITM)
  56.  if b=false then
  57.     call RegWriteValue(sPATH & VAL,1,2)
  58.  else
  59.     chk=RegReadValue(sPATH & VAL)
  60.     if IsEmpty(chk)=false then
  61.        Call RegDeleteValue(sPATH & VAL)
  62.     end if
  63.  end if
  64. end sub
  65.  
  66. Sub Plugin_Terminate 
  67. End Sub
  68.  
  69.  
  70.  
  71.